<?php
class User{
    private $age;
    private $account;
    public $nicename;
    protected $phone;
    private $password;

    public function User(){
       echo "账号是：".$this->account."，密码是：".$this->password;
    }
    /**
     * @param mixed $account
     */
    public function setAccount($account)
    {
        $this->account = $account;
    }

    /**
     * @return mixed
     */
    public function getAccount()
    {
        return $this->account;
    }

    /**
     * @param mixed $age
     */
    public function setAge($age)
    {
        $this->age = $age;
    }

    /**
     * @param mixed $nicename
     */
    public function setNicename($nicename)
    {
        $this->nicename = $nicename;
    }
}
$user = new User();
var_dump($user);